using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;


namespace TurbaconPhone.Graphics
{
    class AnimatedTexture
    {
        private int framecount;
        private int Frame;
        private int spriteHeight, spriteWidth, x_start, y_start;

        private Texture2D myTexture;

        private float TimePerFrame;
        private float TotalElapsed;
        public float Rotation, Scale, Depth;

        private bool paused;
        
        public Vector2 Origin;

        public AnimatedTexture(Vector2 origin, float rotation, float scale, float depth)
        {
            this.Origin = origin;
            this.Rotation = rotation;
            this.Scale = scale;
            this.Depth = depth;
        }

        public void Load(string texName, int frameCount, int framesPerSec, int spriteWidth, int spriteHeight, int x_start, int y_start)
        {
            this.framecount = frameCount;
            this.TimePerFrame = (float)1 / framesPerSec;

            this.x_start = x_start;
            this.y_start = y_start;

            this.spriteHeight = spriteHeight;
            this.spriteWidth = spriteWidth;

            TotalElapsed = 0;
            paused = false;
        }


    }
}
